package com.sie.plm.rpm.standar.vo;

import io.swagger.annotations.ApiParam;
import java.util.List;
public class AddRoleVo {
    @ApiParam("产品信息")
    private ProductVO product;
    @ApiParam("角色列表")
    private List<RoleVO> roles;

    public void setProduct(ProductVO product) {
        this.product = product;
    }

    public void setRoles(List<RoleVO> roles) {
        this.roles = roles;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AddRoleVo)) {
            return false;
        }
        AddRoleVo other = (AddRoleVo) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$product = getProduct(), other$product = other.getProduct();
        if ((this$product == null) ? (other$product != null) : !this$product.equals(other$product)) {
            return false;
        }
        Object this$roles = getRoles(), other$roles =  other.getRoles();
        return !((this$roles == null) ? (other$roles != null) : !this$roles.equals(other$roles));
    }

    protected boolean canEqual(Object other) {
        return other instanceof AddRoleVo;
    }

    public int hashCode() {
        int PRIME = 59,
        result = 1;
        Object $product = getProduct();
        result = result * 59 + (($product == null) ? 43 : $product.hashCode());
        Object $roles =  getRoles();
        return result * 59 + (($roles == null) ? 43 : $roles.hashCode());
    }

    public String toString() {
        return "AddRoleVo(product=" + getProduct() + ", roles=" + getRoles() + ")";
    }


    public ProductVO getProduct() {
        return this.product;
    }


    public List<RoleVO> getRoles() {
        return this.roles;
    }
}
